package com.forever7776.life.core.entity.sys;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author kz
 * @since 2018-01-18
 */
@TableName("sys_role")
public class SysRole extends Model<SysRole> {

    private static final long serialVersionUID = 1L;

    /**
     * 表ID
     */
	private String id;
    /**
     * 角色code
     */
	@TableField("role_code")
	private String roleCode;
    /**
     * 角色名称
     */
	@TableField("role_name")
	private String roleName;
    /**
     * 状态(0:正常 1:删除)
     */
	private Integer status;
    /**
     * 角色模板
     */
	@TableField("rolete_mb")
	private String roleteMb;
    /**
     * 创建时间
     */
	@TableField("insert_date")
	private Date insertDate;
    /**
     * 更新时间
     */
	@TableField("last_update")
	private Date lastUpdate;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getRoleteMb() {
		return roleteMb;
	}

	public void setRoleteMb(String roleteMb) {
		this.roleteMb = roleteMb;
	}

	public Date getInsertDate() {
		return insertDate;
	}

	public void setInsertDate(Date insertDate) {
		this.insertDate = insertDate;
	}

	public Date getLastUpdate() {
		return lastUpdate;
	}

	public void setLastUpdate(Date lastUpdate) {
		this.lastUpdate = lastUpdate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "SysRole{" +
			", id=" + id +
			", roleCode=" + roleCode +
			", roleName=" + roleName +
			", status=" + status +
			", roleteMb=" + roleteMb +
			", insertDate=" + insertDate +
			", lastUpdate=" + lastUpdate +
			"}";
	}
}
